package org.pearl.oauth2.authorizationserverdemo.execption;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.security.oauth2.common.exceptions.*;

import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

/**
 * Created by TD on 2021/8/17
 */
@JsonSerialize(using = MyOauthExceptionJackson2Serializer.class)
@JsonDeserialize(using = MyOAuth2ExceptionJackson2Deserializer.class)
public class MyOAuth2Exception extends OAuth2Exception{

        public MyOAuth2Exception(String msg, Throwable t) {
            super(msg, t);
        }

        public MyOAuth2Exception(String msg) {
            super(msg);
        }
}